package com.dd.ms.consumer.converter;

import com.dd.ms.provider.pojo.DataObjectBO;
import com.dd.ms.provider.pojo.view.DataObjectVO;
import org.springframework.beans.BeanUtils;

/**
 * @Author liuxianmeng
 * @CreateTime 2025/6/22 16:51
 * @Description 数据对象转换器
 */
public class DataObjectConverter {

    public static DataObjectVO convert2VO(DataObjectBO dataObjectBO) {
        DataObjectVO dataObjectVO = new DataObjectVO();
        BeanUtils.copyProperties(dataObjectBO, dataObjectVO);
        return dataObjectVO;
    }
}
